import request from "@/utils/request";

export default {
  getAll() {
    return request({
      url: "/punchin",
      method: "get",
    });
  },

  addpunchin(punchin) {
    return request({
      url: "/punchin",
      method: "post",
      data: punchin,
    });
  },
  deletePunchin(id) {
    return request({
      url: `/punchin/${id}`,
      method: "delete",
    });
  },

  getByPage(pageNo, pageSize) {
    return request({
      url: "/punchin/page",
      method: "get",
      params: {
        pageNo: pageNo,
        pageSize: pageSize,
      },
    });
  },
};
